package com.service.admin.conversion.controller;


import com.service.admin.conversion.controller.rep.ConvertPageRep;
import com.service.admin.conversion.controller.req.ConvertPageReq;
import com.service.admin.conversion.service.ConvertCoinsRecordService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.PageResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/conversion")
public class ConvertController extends BaseController {

    @Autowired
    private ConvertCoinsRecordService convertCoinsRecordService;

    @PostMapping("page")
    public PageResponse<ConvertPageRep> page(@RequestBody ConvertPageReq pageReq){
        return successQueryPageResponse(convertCoinsRecordService.pageRecord(pageReq));
    }


}
